//
//  ActivityTableViewCell.m
//  fupengdouban
//
//  Created by lanou3g on 15/10/23.
//  Copyright © 2015年 fuoeng. All rights reserved.
//

#import "ActivityTableViewCell.h"

@implementation ActivityTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self p_setupViews];
    }
    return self;
}



-(void)p_setupViews
{
    UIImageView * LanSeImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 365, 180)];
    LanSeImageView.image = [UIImage imageNamed:@"第一页-跳转前-浅蓝图"];
    [self.contentView addSubview:LanSeImageView];
    
    
    UIImageView * BaiSeImageView = [[UIImageView alloc] initWithFrame:CGRectMake(3, 35, 357, 138)];
    BaiSeImageView.image = [UIImage imageNamed:@"第一页-跳转前-纯白图"];
    [LanSeImageView addSubview:BaiSeImageView];
    
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 3, 330, 30)];
    [LanSeImageView addSubview:self.titleLabel];
    
    
    self.beginEndTimeView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"第一页-跳转前-时间图"]];
    self.beginEndTimeView.frame = CGRectMake(5, 5, 20, 20);
    [BaiSeImageView addSubview:self.beginEndTimeView];
    
    self.beginEndTimeLabel = [[UILabel alloc] init];
    self.beginEndTimeLabel.frame = CGRectMake(CGRectGetMaxX(self.beginEndTimeView.frame)+5, CGRectGetMinY(self.beginEndTimeView.frame), 220, 20);
    self.beginEndTimeLabel.font = [UIFont systemFontOfSize:15];
    [BaiSeImageView addSubview:self.beginEndTimeLabel];
    
    
    self.AddressImageView = [[UIImageView alloc] init];
    self.AddressImageView.frame = CGRectMake(CGRectGetMinX(self.beginEndTimeView.frame), CGRectGetMaxY(self.beginEndTimeView.frame)+5, 20, 20);
    self.AddressImageView.image = [UIImage imageNamed:@"第一页-跳转前-地址图"];
    [BaiSeImageView addSubview:self.AddressImageView];
    
    self.AddressLabel = [[UILabel alloc] init];
    self.AddressLabel.frame = CGRectMake(CGRectGetMinX(self.beginEndTimeLabel.frame), CGRectGetMinY(self.AddressImageView.frame), 220, 20);
    self.AddressLabel.font = [UIFont systemFontOfSize:15];
    [BaiSeImageView addSubview:self.AddressLabel];
    
    
    self.CategoryNameImageView = [[UIImageView alloc] init];
    self.CategoryNameImageView.frame = CGRectMake(CGRectGetMinX(self.AddressImageView.frame), CGRectGetMaxY(self.AddressImageView.frame)+5, 20, 20);
    self.CategoryNameImageView.image = [UIImage imageNamed:@"第一页-跳转前-活动类型图"];
    [BaiSeImageView addSubview:self.CategoryNameImageView];
    
    self.CategoryNameLabel = [[UILabel alloc] init];
    self.CategoryNameLabel.frame = CGRectMake(CGRectGetMinX(self.AddressLabel.frame), CGRectGetMinY(self.CategoryNameImageView.frame), 220, 20);
    self.CategoryNameLabel.font = [UIFont systemFontOfSize:15];
    [BaiSeImageView addSubview:self.CategoryNameLabel];
    
    self.WisherCountLabel1 = [[UILabel alloc] init];
    self.WisherCountLabel1.frame = CGRectMake(8, CGRectGetMaxY(self.CategoryNameLabel.frame)+30, 50, 20);
    self.WisherCountLabel1.text = @"感兴趣:";
    self.WisherCountLabel1.font = [UIFont systemFontOfSize:15];
    [BaiSeImageView addSubview:self.WisherCountLabel1];
    
    self.WisherCountLabel2 = [[UILabel alloc] init];
    self.WisherCountLabel2.frame = CGRectMake(CGRectGetMaxX(self.WisherCountLabel1.frame)+5, CGRectGetMinY(self.WisherCountLabel1.frame), 40, 20);
    self.WisherCountLabel2.font = [UIFont systemFontOfSize:15];
    self.WisherCountLabel2.textColor = [UIColor redColor];
    [BaiSeImageView addSubview:self.WisherCountLabel2];
    
    
    self.ParticipantCountLabel1 = [[UILabel alloc] init];
    self.ParticipantCountLabel1.frame = CGRectMake(CGRectGetMaxX(self.WisherCountLabel2.frame)+15, CGRectGetMinY(self.WisherCountLabel1.frame), 35, 20);
    self.ParticipantCountLabel1.text = @"参加:";
    self.ParticipantCountLabel1.font = [UIFont systemFontOfSize:15];
    [BaiSeImageView addSubview:self.ParticipantCountLabel1];
    
    self.ParticipantCountLabel2 = [[UILabel alloc] init];
    self.ParticipantCountLabel2.frame = CGRectMake(CGRectGetMaxX(self.ParticipantCountLabel1.frame)+5, CGRectGetMinY(self.ParticipantCountLabel1.frame), 40, 20);
    self.ParticipantCountLabel2.textColor = [UIColor redColor];
    self.ParticipantCountLabel2.font = [UIFont systemFontOfSize:15];
    [BaiSeImageView addSubview:self.ParticipantCountLabel2];
    
    
    self.imv = [[UIImageView alloc] init];
    self.imv.frame = CGRectMake(CGRectGetMaxX(self.AddressLabel.frame)+5, CGRectGetMinY(self.beginEndTimeLabel.frame), 100, 127);
    self.imv.backgroundColor = [UIColor cyanColor];
    self.imv.layer.masksToBounds = YES;
    self.imv.layer.cornerRadius = 4;
    [BaiSeImageView addSubview:self.imv];
    
    
    
}














- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
